﻿using Microsoft.EntityFrameworkCore;
using WidgetsDesign.API.Dtos;
using WidgetsDesign.API.Models;

namespace WidgetsDesign.API.DataBase
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {



        }


        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<HitokotoModel>().ToTable("Hitokoto").HasKey(c=>c.Id);
            base.OnModelCreating(modelBuilder);
        }

        public DbSet<HitokotoModel> Hitokoto { get; set; }
        public DbSet<VerificationCodeModel> VerificationCode { get; set; }
        public DbSet<UserInfo> UserInfo { get; set; }
        public DbSet<UploadFile> UploadFile { get; set; }
        public DbSet<WidgetsList> WidgetsList { get; set; }
        public DbSet<RechargeCard> RechargeCard { get; set; }
        public DbSet<RechargeRecord> RechargeRecord { get; set; }
        public DbSet<Dict> DictData { get; set; }
    }
}
